// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import { Form } from 'vant';
import store from './store'
import Vant from 'vant'
import 'vant/lib/index.css'
import './assets/css/indexNew.css'
import { Dialog } from 'vant';
import { Lazyload } from 'vant';
// import '@/assets/font/vant-icon-db1de1.ttf';
// import '@/assets/font/vant-icon-db1de1.woff';
import 'vant/lib/icon/local.css';
Vue.use(Dialog);
import axios from 'axios'  
Vue.prototype.$axios = axios;
import qs from 'qs'
Vue.prototype.qs = qs    
// axios.defaults.baseURL = '/api'
//  axios.defaults.baseURL = 'rsgz'

Vue.use(Lazyload);

// console.log(Vue.config,'process.env.VUE_APP_BASE_API')
Vue.use(Form);

//引入布局
import { Col, Row } from 'vant';
Vue.use(Col);
Vue.use(Row);
Vue.use(Vant)
Vue.config.productionTip = false
/* eslint-disable no-new */


//请求发送拦截
axios.interceptors.request.use((request) => {

  request.baseURL = '/rsgz'
  //发送请求给后台
  return request;

}, function (error) {
  // Do something with request error
  return Promise.reject(error);
});


new Vue({
  el: '#app',
  store,
  router:router,
  components: { App },
  template: '<App/>'
})
